﻿@model PracticeAzure.Website.Data.Announcement

@{
    ViewBag.Title = "创建新消息";
}

@section scripts{
    <link rel="stylesheet" type="text/css" href="/Content/cleditor/jquery.cleditor.css" />
    <script type="text/javascript" src="/Content/cleditor/jquery.cleditor.js"></script>

    <script type="text/javascript">
        $(function () {
            // set the html editor for body textarea
            $("#Body").cleditor({
                width: $(this).parent().width(),
                height: 400
            });
        });
    </script>
}
<h2>创建新消息</h2>

@using (Html.BeginForm()) 
{
    <div class="editor-field">
        @Html.TextAreaFor(model => model.Body)
    </div>

    <p>
        <input type="submit" value="保存" />
    </p>
}